package com.mhy.ssm.service.impl;

import com.mhy.ssm.pojo.Account;
import com.mhy.ssm.service.AccountService;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.support.DefaultTransactionDefinition;

import java.util.List;

public class AccountServiceImpl2 implements AccountService {
    @Override
    public void save(Account account) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void update(Account account) {

    }

    @Override
    public List<Account> findAll() {
        return null;
    }

    @Override
    public Account findById(Integer id) {
        return null;
    }


    @Override
    public Boolean transfer(String from, String to, Double money) {

//        DefaultTransactionDefinition tf = new DefaultTransactionDefinition();
//
//        TransactionStatus status = tx.TransactionStatus(tf);
//
//        try {
//
//        } catch (Exception e) {
//
//        }
        return false;
    }
}
